package com.yipao.db.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.YipaoComment;
import com.yipao.db.domain.YipaoCommentExample;

public interface CommentMapper {
    /**
     
     * This method corresponds to the database table yipao_comment
     *
     * @mbg.generated
     */
    long countByExample(YipaoCommentExample example);

    /**
     
     * This method corresponds to the database table yipao_comment
     *
     * @mbg.generated
     */
    int deleteByExample(YipaoCommentExample example);

    /**
     
     * This method corresponds to the database table yipao_comment
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(Integer id);

    /**
     
     * This method corresponds to the database table yipao_comment
     *
     * @mbg.generated
     */
    int insert(YipaoComment record);

    /**
     
     * This method corresponds to the database table yipao_comment
     *
     * @mbg.generated
     */
    int insertSelective(YipaoComment record);

    /**
     
     * This method corresponds to the database table yipao_comment
     *
     * @mbg.generated
     */
    YipaoComment selectOneByExample(YipaoCommentExample example);

    /**
     
     * This method corresponds to the database table yipao_comment
     *
     * @mbg.generated
     */
    YipaoComment selectOneByExampleSelective(@Param("example") YipaoCommentExample example, @Param("selective") YipaoComment.Column ... selective);

    /**
     
     * This method corresponds to the database table yipao_comment
     *
     * @mbg.generated
     */
    List<YipaoComment> selectByExampleSelective(@Param("example") YipaoCommentExample example, @Param("selective") YipaoComment.Column ... selective);

    /**
     
     * This method corresponds to the database table yipao_comment
     *
     * @mbg.generated
     */
    List<YipaoComment> selectByExample(YipaoCommentExample example);

    /**
     
     * This method corresponds to the database table yipao_comment
     *
     * @mbg.generated
     */
    YipaoComment selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") YipaoComment.Column ... selective);

    /**
     
     * This method corresponds to the database table yipao_comment
     *
     * @mbg.generated
     */
    YipaoComment selectByPrimaryKey(Integer id);

    /**
     
     * This method corresponds to the database table yipao_comment
     *
     * @mbg.generated
     */
    YipaoComment selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    /**
     
     * This method corresponds to the database table yipao_comment
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") YipaoComment record, @Param("example") YipaoCommentExample example);

    /**
     
     * This method corresponds to the database table yipao_comment
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") YipaoComment record, @Param("example") YipaoCommentExample example);

    /**
     
     * This method corresponds to the database table yipao_comment
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(YipaoComment record);

    /**
     
     * This method corresponds to the database table yipao_comment
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(YipaoComment record);

    /**
     
     * This method corresponds to the database table yipao_comment
     *
     * @mbg.generated
     */
    int logicalDeleteByExample(@Param("example") YipaoCommentExample example);

    /**
     
     * This method corresponds to the database table yipao_comment
     *
     * @mbg.generated
     */
    int logicalDeleteByPrimaryKey(Integer id);
}
